﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：RedisConfiguration.cs
// 功能描述：TongTongMall.Redis
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Dependecy;

namespace TongTongMall.Redis.Cache.Configuration
{
    public class RedisConfiguration : IRedisConfiguration
    {
        public static RedisConfiguration Default { get { return DefaultInstance; } }
        private static readonly RedisConfiguration DefaultInstance = new RedisConfiguration();
        public string GroupKeys(List<string> keys)
        {
            return string.Join(":", keys.Where(x => x != null));
        }

        public string GroupKeys(params string[] keys)
        {
            return string.Join(":", keys.Where(x => x != null));
        }
    }
}
